/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-07-22 16:42:56
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-07-22 18:36:14
 * @FilePath: \实训笔记\day07\demo1.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day07;

public class demo1 {
  public class AverageCalculator {
     public int add(int a, int b) {
        return a + b;
    }
    
    // 三个整数相加（参数数量不同）
    public int add(int a, int b, int c) {
        return a + b + c;
    }

    public double add(double a, double b) {
        return a + b;
    }
  }
}
